package com.walleipt.demo.ioc.atValue;

import org.springframework.beans.factory.annotation.Value;

public class AtValueBean {

	@Value("张三")
	private String nickName;
	@Value("#{21-2}")
	private Integer age;

	@Value("${user.sex}")
	private String sex;

	public String getNickName() {
		return nickName;
	}

	public void setNickName(String nickName) {
		this.nickName = nickName;
	}

	public Integer getAge() {
		return age;
	}

	public void setAge(Integer age) {
		this.age = age;
	}

	public String getSex() {
		return sex;
	}

	public void setSex(String sex) {
		this.sex = sex;
	}

	@Override
	public String toString() {
		return "SetValueBean [nickName=" + nickName + ", age=" + age + ", sex="
				+ sex + "]";
	}

}
